package com.ldz.redis.model;

public class LikeTask extends TaskBase {
    private String myUserId;
    private String yourUserId;

    public LikeTask(String myUserId, String yourUserId){
        this.myUserId = myUserId;
        this.yourUserId = yourUserId;
    }

    //需要执行的操作
    @Override
    public void taskExc() {
        System.out.println(getTaskId());
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("task end");
    }
}
